package cn.com.bluemoon.daps.system.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description 用户更新入参;
 * @Author luolq
 * @Date 2022/12/22 16:31
 * @Vsersion 1.0
 **/
@Data
public class SysUserUpdateDto {

    @ApiModelProperty(value = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String userName;

    @ApiModelProperty(value = "邮件")
    @Length(max = 100, message = "邮箱最大长度不能超过100个字符!")
    private String email;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    @ApiModelProperty(value = "是否启用（1：启用，0：未启用）")
    private Integer isUse;

    @ApiModelProperty(value = "角色ID集合")
    private List<Long> roleIdList;

}
